
from rest_framework.routers import SimpleRouter
from fasu.views.mation import DisposalSubjectModelViewSet, CaseInfoModelViewSet, FileViewSet, PrincipalModelViewSet, \
    MediationModelViewSet, PartModelViewSet, BatchModelViewSet, CourtsModelViewSet


router = SimpleRouter()
# 这里进行注册路径，并把视图关联上，这里的api地址以视图名称为后缀，这样方便记忆api/CrudDemoModelViewSet
router.register("api/DisposalSubjectModelViewSet", DisposalSubjectModelViewSet)
router.register("api/CaseInfoModelViewSet", CaseInfoModelViewSet)
router.register("api/FileViewSet", FileViewSet)     # 文件上传
router.register("api/PrincipalModelViewSet", PrincipalModelViewSet)
router.register("api/MediationModelViewSet", MediationModelViewSet)
router.register("api/PartModelViewSet", PartModelViewSet)
router.register("api/BatchModelViewSet", BatchModelViewSet)
router.register("api/CourtsModelViewSet", CourtsModelViewSet)

urlpatterns = [
]
urlpatterns += router.urls